﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

using Microsoft.Practices.Prism.Commands;

namespace Public.MvvmBase
{
    /// <summary>
    /// 命令模型
    /// 使用该功能的项目，必须引用 Microsoft.Practices.Prism.Commands 命名空间
    /// </summary>
    public class DelegateCommandMode
    {
        public DelegateCommandMode()
        {
            TestCaommand = new DelegateCommand(TestCaommandFunction);
        }

        private void TestCaommandFunction()
        {
            //do something
        }

        public DelegateCommand TestCaommand { get; }
    }
}
